$(document).ready(function(){
	var a = $(".aaa");
	var b = $(".gushi");
	var c = $(".div4_1");
	var html = null;
	var html1 = null;
	$.ajax({
		url: "/airbnb/img.do",
		async: false,
	   	type: "POST",
	   	error: function (){
	   		alert("数据提交失败")
	   	},
	   	success: function(json){
//	   		alert(JSON.stringify(json))
	   		for(var i=0 ; i<json.length ; i++){
	   			$(a[i]).css("background-image","url('\/airbnb"+json[i].imgurl+"'\)");
	   			html = json[i].sto.title;
	   			html1 = json[i].sto.stotype.stname;
	   			$(b[i]).append(html);
	   			$(c[i]).append(html1);
	   		}
	   	}
	});
})